
import request from '@/utils/request'

// 查询投融资服务平台列表
export function listAgency(query) {
  return request({
    url: '/kjy/serviceAgency/list',
    method: 'get',
    params: query
  })
}

// 查询投融资服务平台详细
export function getAgency(id) {
  return request({
    url: '/kjy/serviceAgency/' + id,
    method: 'get'
  })
}

// 新增投融资服务平台
export function addAgency(data) {
  return request({
    url: '/kjy/serviceAgency',
    method: 'post',
    data: data
  })
}

// 修改投融资服务平台
export function updateAgency(data) {
  return request({
    url: '/kjy/serviceAgency',
    method: 'put',
    data: data
  })
}

// 删除投融资服务平台
export function delAgency(id) {
  return request({
    url: '/kjy/serviceAgency/' + id,
    method: 'delete'
  })
}
